let n = 5
const res = Array.from({length:n}).map(()=>new Array(n))
console.log(res);